package org.eerbaar.lang;

import org.eerbaar.lang.runtime.Executor;

public class Reference implements Expression {

    private final String name;

    public Reference(String name) {
        this.name = name;
    }

    public Expression getResult() {
        return Executor.getInstance().find(name);
    }

    @Override
    public String toString() {
        return "" + getResult();
    }

}
